export default {
    formatWeek(week) {
        const weeks = ["日", "一", "二", "三", "四", "五", "六"];
        return weeks[week];
    },
    isSameDay(day1, day2) {
        return day1.getFullYear() === day2.getFullYear() && day1.getMonth() === day2.getMonth() && day1.getDate() === day2.getDate();
    },
    renderGender(value) {
        if (value === "MALE" || value === "M") {
            return "男";
        } else if (value === "FEMALE" || value === "F") {
            return "女";
        } else {
            return "";
        }
    }
}
